#ifndef FILES_LIST_H_
#define FILES_LIST_H_
#include "message.h"
#include <map>
#include <string>



class FilesList : public Message {
    typedef std::map<string,string> MapFiles;

private:
	MapFiles map_ ;
public:
	FilesList(MapFiles& fn) : Message(5){map_=fn;}

	FilesList(MapFiles& fn,std::string user, std::string pass) : Message(5,user,pass){map_=fn;}

	~FilesList() {}

	string Format() {
		string result;
		 for (std::map<string,string>::iterator it = map_.begin() ; it != map_.end(); ++it)
		 {
			 //Aca falta la parte de hashear
			 result+=(it->first)+"//"+(it->second)+" ";
		 }
		 return result;
	}

	MapFiles getMap(){
		return map_;
	}


};




#endif /* FILES_LIST_H_ */
